package com.zhilianbao.leyaogo.utils;

import com.bql.pickphotos.PauseOnScrollListener;
import com.bumptech.glide.Glide;

/**
 * Glide加载图片  滑动监听 <br>
 * Created by Cyarie on 2016/2/17.
 */
public class GlidePauseOnScrollListener extends PauseOnScrollListener {

    public GlidePauseOnScrollListener(boolean pauseOnScroll, boolean pauseOnFling) {
        super(pauseOnScroll, pauseOnFling);
    }

    @Override
    public void resume() {
        Glide.with(getActivity()).resumeRequests();
    }

    @Override
    public void pause() {
        Glide.with(getActivity()).pauseRequests();
    }
}
